package com.loan.system.mapper;

import com.loan.common.core.mapper.BaseMapperPlus;
import com.loan.system.domain.ApplyEntity;
import com.loan.system.domain.CompanyEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author shiguang on 2022/9/5 10:49
 */
public interface CompanyMapper extends BaseMapperPlus<CompanyMapper, CompanyEntity, CompanyEntity> {

    List<ApplyEntity> selectOverList(@Param("entity") ApplyEntity entity, @Param("isRemark") String isRemark, @Param("minDay") Integer minDay,
                                     @Param("companyId") Long companyId, @Param("pageNum") Integer pageNum,
                                     @Param("beginTime") Object beginTime, @Param("endTime") Object endTime,
                                     @Param("pageSize") Integer pageSize);

    int selectOverCount(@Param("entity") ApplyEntity entity, @Param("isRemark") String isRemark, @Param("minDay") Integer minDay,
                        @Param("beginTime") Object beginTime, @Param("endTime") Object endTime,
                        @Param("companyId") Long companyId);
}
